package com.will.txj.aj.security.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.will.txj.aj.security.mapper.OauthClientDetailsMapper;
import com.will.txj.aj.security.service.IOauthClientDetailsService;
import com.will.txj.common.security.OauthClientDetails;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author wen-yi
 * @since 2021-12-09
 */
@Service
@Transactional
public class OauthClientDetailsServiceImpl extends ServiceImpl<OauthClientDetailsMapper, OauthClientDetails> implements IOauthClientDetailsService {
    @Resource
    private OauthClientDetailsMapper oauthClientDetailsMapper;

    @Override
    @Transactional(readOnly = true)
    public OauthClientDetails selectClientByAppId(String appId) {
        return oauthClientDetailsMapper.selectClientByAppId(appId);
    }
}
